package com.zhan.drugStore.exception;

@SuppressWarnings("serial")
public class GlobalException extends RuntimeException
{
	private int _code = 0;


	public GlobalException(String message)
	{
		super(message);
	}

	public GlobalException(Exception message)
	{
		super(message);
	}

	public GlobalException(int code, String message, Throwable cause)
	{
		super(message, cause);

		_code = code;
	}

	public GlobalException(int code, String message)
	{
		super(message);

		_code = code;
	}

	public GlobalException(int code)
	{
		super("code: " + code);

		_code = code;
	}

	public GlobalException()
	{
		super();
	}

	public GlobalException(String message, Throwable cause)
	{
		super(message, cause);
	}

	public int getCode()
	{
		return _code;
	}

	public void setCode(int code)
	{
		_code = code;
	}
    
}
